function query(repositorioNombre)
	basePath = strcat("./", repositorioNombre, "/");

	load ("-binary", strcat(basePath, "UMatrix.dat") );
	load ("-binary", strcat(basePath, "SMatrix.dat") );
	load ("-binary", strcat(basePath, "VMatrix.dat") );
	load  QVector.dat
	
	q = q'*U*pinv(S);

	N = size(V, 1);
	ret = zeros(N, 1);
	
	for i = 1:N
		ret(i) = sim(q, V(i, :));
	end;
	%max(ret)
	% Casteo a entero para que sea más facil de leer desde C
	ret = fix(ret.*10000000);
	
	save Results.dat ret;
end;

function X = sim(a, b)
	X = sum(a.*b)/(norm(a)*norm(b));
end;
